package com.xl.xlyx.controller;

import java.util.Map;

import javax.annotation.Resource;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xl.xlyx.service.GoodsService;
import com.xl.xlyx.utill.Response;

@RestController 
@RequestMapping(value="/goods")

/*@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)*/
public class GoodsController {
	@Resource
	private GoodsService goodsService;
	
	@RequestMapping("/cat_goods.do")
	public Response catGoods() {
		Map<String, Object> map = goodsService.getCatGoods();
		return new Response().success(map);
	}

}
